import api from './index'
import { axios } from '@/utils/request'

export function updateFinishOrder(parameter) {
    return axios({
      url: '/order/workOrder/finishOrder',
      method: 'put',
      data: parameter
    })
  }

export function getOrderList(parameter) {
    return axios({
      url: `/order/workOrderFinishRecord/record/list`,
      method: 'post',
      data: parameter
    })
  }
export function getAddList(parameter) {
    return axios({
      url: `/order/workOrderFinishRecord/add`,
      method: 'post',
      data: parameter
    })
  }
export function getUserList(parameter) {
    return axios({
      url: `/sys/developer/user/list`,
      method: 'get',
      params: parameter
    })
  }
export function updateWorkOrder(parameter) {
    return axios({
      url: `/order/workOrder/edit`,
      method: 'put',
      data: parameter
    })
  }
  // 统计金额
export function getAgreementTotal(parameter) {
  return axios({
    url: `/agreement/agreement/total`,
    method: 'get',
    params: parameter
  })
}

// 统计金额
export function getAgreementPayTotal(parameter) {
  return axios({
    url: `/agreement/agreementPayRecord/total`,
    method: 'get',
    params: parameter
  })
}
// 统计金额
export function getAgreementRPayTotal(parameter) {
  return axios({
    url: `/agreement/agreementPayRecord/Rtotal`,
    method: 'get',
    params: parameter
  })
}
